<template>
  <div class="app-container">
    <div class="ibox-content">
      <div class="accout-wrapper">

        <div class="accout-item normal">
          <a class="menu-item menu1" @click="redirect(1)">
            <div class="menu-icon"></div>
            <div class="menu-desc">小微商户</div>
            <div class="menu-xs-desc">（身份证+场景照）</div>
          </a>
        </div>

        <div class="accout-item normal">
          <a class="menu-item menu3" @click="redirect(2)">
            <div class="menu-icon"></div>
            <div class="menu-desc">个体商户</div>
            <div class="menu-xs-desc">（身份证+场景照）</div>
          </a>
        </div>


        <div class="accout-item normal">
          <a class="menu-item menu4" @click="redirect(3)">
            <div class="menu-icon"></div>
            <div class="menu-desc">企业商户</div>
            <div class="menu-xs-desc">（身份证+场景照+营业执照）</div>
          </a>
        </div>

      </div>
    </div>
  </div>
</template>

<script name="index" setup>
const router = useRouter();

// 跳转地址
function redirect(tab) {
  switch (tab) {
    case 1:
      router.push({path: "/merchants/one"});
      break;
    case 2:
      router.push({path: "/merchants/tow"});
      break;
    case 3:
      router.push({path: "/merchants/three"});
      break;
  }
}
</script>
<style lang='scss' scoped>

.ibox-content .accout-wrapper {
  padding: 30px;
  margin: 180px auto;
  background: #fff;
  display: flex;
  justify-content: center;
}

.ibox-content .accout-wrapper .accout-item {
  width: 280px;
  margin: 0 30px;
}

.ibox-content .accout-wrapper .accout-item a {
  display: block;
  width: 280px;
  padding: 30px 0;
  text-decoration: none;
}

.ibox-content .accout-wrapper .accout-item a.menu1 {
  background: #289df6;
}

.ibox-content .accout-wrapper .accout-item a.menu3 {
  background: #68cc66;
}


.ibox-content .accout-wrapper .accout-item a.menu4 {
  background: #d0545c;
}

.ibox-content .accout-wrapper .accout-item a .menu-icon {
  height: 90px;
  margin: 25px 0;
}

.ibox-content .accout-wrapper .accout-item a.menu1 .menu-icon {
  background: url("@/assets/images/img_small.png") no-repeat center;
  background-size: 90px;
}

.ibox-content .accout-wrapper .accout-item a.menu3 .menu-icon {
  background: url("@/assets/images/img_license.png") no-repeat center;
  background-size: 90px;
}


.ibox-content .accout-wrapper .accout-item a.menu4 .menu-icon {
  background: url("@/assets/images/img_license.png") no-repeat center;
  background-size: 90px;
}

.ibox-content .accout-wrapper .accout-item a .menu-desc {
  font: 20px/36px "";
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.ibox-content .accout-wrapper .accout-item a .menu-xs-desc {
  font: 14px/24px "";
  color: #fff;
  text-align: center;
}

.ibox-content > .content-item {
  margin-bottom: 30px;
  padding: 0 7px;
}

.ibox-content > .content-item h4 {
  font: 600 14px/16px "";
  margin: 10px 0 14px 0;
  position: relative;
  padding-left: 10px;
}

.ibox-content > .content-item h4 > .line {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-left: 3px solid #1b95f1;
}

.apply-wrapper > img {
  max-height: 100%;
  max-width: 100%;
}
</style>
